package com.zz.service.iml;

import com.zz.dao.PhysiologyDao;
import com.zz.dto.PatientPhysiologistResult;
import com.zz.pojo.Patient;
import com.zz.service.PhysiologyService;
import com.zz.utils.PhysiologistUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Copyright Zz
 * FileName: PhysiologyServiceIml
 * Author:   Zz
 * Date:     2023/6/110:54
 * Description:生理状态表业务层实现类
 * hISTORY:
 * <author>  <time>     <version>    <desc>
 * 作者姓名   修改时间       版本号       描述
 */
@Service
@Transactional
public class PhysiologyServiceIml implements PhysiologyService {
    @Autowired
    private PhysiologyDao physiologyDao;

    @Override
    public PatientPhysiologistResult queryPhysiologyByID(String ID) {
       Patient patient= physiologyDao.queryPhysiologyByID(ID);
       return PhysiologistUtil.getPhysiologistResult(patient);
    }
}
